import { EntitySchema } from '@mikro-orm/core';

export class JobUserConcerns {
  id!: string;
  createdAt?: Date;
  updatedAt?: Date;
  userId?: string;
  publisherId?: string;
}

export const JobUserConcernsSchema = new EntitySchema({
  class: JobUserConcerns,
  properties: {
    id: { primary: true, type: 'string', columnType: 'bigint' },
    createdAt: { type: 'Date', length: 0, nullable: true },
    updatedAt: { type: 'Date', length: 0, nullable: true },
    userId: { type: 'string', columnType: 'bigint', nullable: true },
    publisherId: { type: 'string', columnType: 'bigint', nullable: true },
  },
});
